home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Deutsche Edition 1
/
Deutsche Edition 1.iso
/
amok
/
011-020
/
amok11
/
r.o.m.
/
m2sources
/
preference.mod
< prev
next >
Wrap
Text File
|
1993-11-04
|
858b
|
34 lines
IMPLEMENTATION MODULE Preference;
(*
Created: 1987 by
Stefan Salewski
Stolper Weg 3
2160 Stade West-Germany
Tel: 04141/61130
Note: compiled with AMIGA Modula-2 System by AMSoft from 5.5.88
This Module may be freely copied. But please
leave my name in. Thanks....Stefan
*)
FROM Intuition IMPORT PreferencesPtr,GetPrefs,topazEighty;
FROM Storage IMPORT ALLOCATE,DEALLOCATE;
PROCEDURE CharSize(VAR width,height:INTEGER);
VAR
prefPtr:PreferencesPtr;
BEGIN
ALLOCATE(prefPtr,SIZE(prefPtr^));
GetPrefs(prefPtr,SIZE(prefPtr^));
IF prefPtr^.fontHeight= topazEighty THEN
width:=8;
height:=8
ELSE
width:=10;
height:=9;(*I hope this is correct *)
END;
DEALLOCATE(prefPtr,SIZE(prefPtr));
END CharSize;
END Preference.mod